package d14_extends_filed;




//
public class Test {
    public static void main(String[] args) {
        //目标:继承之后,子类访问成员的特点, 就近原则
        Zi zi =new Zi();
        zi.showName();
    }
}


class Zi{
    String name = "子类名称";
    public void showName(){
        System.out.println(name);
    }
}
class Fu{
    String name = "父类名称";
}